package modules.user.service;

import entity.User;
import modules.user.dao.IUserDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户服务层实现类
 * @author ziv
 * @date 2018-12-08
 */
@Service("userService")
public class UserServiceImp implements IUserService {

    @Resource
    private IUserDao userDao;

    @Override
    public User getByUserId (int userID) {
        return userDao.getByUserId(userID);
    }
}

